﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>
<%@ Import Namespace="C3.Proto.Core.Model"%>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<% var last = (string)ViewData["LastRunDate"]; %>
<% if(!string.IsNullOrEmpty(last))
   { %>
  <h3>Last Import: <%=last %></h3>    
<%   } %>
<form method="get" id="reportform" action="Home/AllProjectsExport">
<p>
    <select name="type" id="type" style="width: 460px" onchange="ShowType(); return false;">
            
       
	<option value="all">All Project Analysis Export</option>	<option value="project">Project Analysis Export</option>	<option value="state">Statewide Summary Report</option>        
	<option value="region">Region Summary Report</option>            
    </select>
    <select id="region" name="region" style="width: 460px;display:none" class="filter">            <option value="1. Austin">Austin</option>        <option value="2. North Texas">North TX</option>        <option value="3. West Texas">West TX</option>        <option value="4. South Texas">South TX</option>        <option value="6. Galveston">Galveston</option>        <option value="8. SWMC">UTSWMC</option>        <option value="7. MDACC">MDA</option>    </select>
    <select id="project" name="project" style="width: 460px;display:none" class="filter">      
      
<option value="102-016">102-016 Library High Density Repository </option>
<option value="102-041">102-041 Belo Center for New Media </option>
<option value="102-049">102-049 Hogg Auditorium Renovation </option>
<option value="102-081">102-081 Darrell K. Royal - Texas Memorial Stadium Expansion </option>
<option value="102-084">102-084 AT&T Executive Education & Conference Center </option>
<option value="102-159">102-159 Performing Arts Center Fire/Life Safety Upgrade and Improvements </option>
<option value="102-172C">102-172 BioMedical Engineering Building </option>
<option value="102-198">102-198 School of Nursing Addition </option>
<option value="102-208AC">102-208 A-C LBJ Library Plaza renovation/Lady Bird Johnson Center </option>
<option value="102-208D">102-208 "D" LBJ Library Plaza Renovation/Lady Bird Johnson Center </option>
<option value="102-219">102-219 Speedway Mall North of 21st Street and East Mall-East Mall Fountain, Plaza </option>
<option value="102-220">102-220 Elementary Charter School Permanent Facility </option>
<option value="102-225">102-225 Disch Falk Field </option>
<option value="102-246">102-246 San Antonio Garage Additional Parking Levels </option>
<option value="102-248">102-248 Student Activity Center - Phase I - Liberal Arts </option>
<option value="102-254">102-254 Dell Computer Science Hall-Bill and Melinda Gates Computer Science Complex </option>
<option value="102-257">102-257 Dell Pediatric Research Institute </option>
<option value="102-259">102-259 Norman Hackerman Building-Vivarium-Phase I - Robert A. Welch Hall </option>
<option value="102-259B">102-259 B Robert A. Welch Hall Renovation </option>
<option value="102-259C">102-259C - Imaging Suite </option>
<option value="102-259D">102-259D Lab Finish Out </option>
<option value="102-273">102-273 Art Building and Museum Renovation </option>
<option value="102-339">102-339 H.J. Lutcher Stark Center for Physical Culture & Sports </option>
<option value="102-346B">102-346B UT Administration Building Renovations </option>
<option value="102-357">102-357 Battle Hall Complex-West Mall Office Building Renovation </option>
<option value="102-364">102-364 Geology Building Renovation </option>
<option value="102-370">102-370 DKR - Texas Memorial Stadium - Maintenance & Renovation Project </option>
<option value="102-371">102-371 Indoor Tennis Facility at Steiner Ranch </option>
<option value="102-374">102-374 Renovation of E.P. Schoch Building </option>
<option value="102-391">102-391 Phase II - Liberal Arts Building </option>
<option value="102-394">102-394 Data Center at the Central Receiving Building </option>
<option value="102-395">102-395 Estuarine Research Center </option>
<option value="102-406">102-406 Peter T Flawn Academic Center Renovation </option>
<option value="102-487">102-487 Clark Field </option>
<option value="102-556">102-556 Engineering Education and Research Center </option>
<option value="102-569">102-569 Texas Union Building Renovation </option>
<option value="102-577">102-577 DKR-TMS-Athletics Offices Infill-Stadium Maint and Reno </option>
<option value="102-627">102-627 High Performance Computing Facility Expansion </option>
<option value="102-965D">102-965D Jack S. Blanton Museum of Art - Phase IV </option>
<option value="201-114">201-114 Biosciences Facility </option>
<option value="201-184">201-184 Parking Garage </option>
<option value="201-247">201-247 Basketball Complex </option>
<option value="201-268_2A">201-268_2A Physical Sciences-Engineering Core Facility, Chemistry and Computer Science Building </option>
<option value="201-268E">201-268 E Physical Sciences/Engineering Core Facility, Clean Room Addition </option>
<option value="201-279A">201-279A Science and Engineering Core Facilities Upgrade (A) </option>
<option value="201-333">201-333 UTEP Bookstore </option>
<option value="201-348">201-348 Student Recreation Center </option>
<option value="201-348-01">201-348-01</option>
<option value="201-383">201-383 Health Sciences and Nursing Building </option>
<option value="201-410">201-410 University Housing Expansion - Schuster Avenue Apartments </option>
<option value="201-553">201-553 University Parking Garage II </option>
<option value="201-571">201-571 Sun Bowl Drive Pedestrian Overpass </option>
<option value="301-226">301-226 Maverick Activities Center </option>
<option value="301-258">301-258 Engineering Research Complex </option>
<option value="301-258BC">301-258BC Engineering Research Complex Stage 2 </option>
<option value="301-376">301-376 Center for Structural Engineering Research </option>
<option value="301-397">301-397 College Park Center </option>
<option value="301-493">301-493 UTA College Park </option>
<option value="302-120">302-120 Founders Renovation </option>
<option value="302-120-01">302-120-01 Founders 3rd Floor Renovation </option>
<option value="302-244">302-244 Campus Landscape Enhancement Project </option>
<option value="302-280">302-280 Math, Science and Engineering Teaching-Learning Center </option>
<option value="302-323">302-323 Student Services Building </option>
<option value="302-325">302-325 Student Housing Living/Learning Center and Food Service Facility </option>
<option value="302-332">302-332 Center for Brain Health Second Floor Renovation </option>
<option value="302-392A1">302-392 A1 Arts and Technology Facility - Phase A1 </option>
<option value="302-392-C">302-392C-Arts and Technology Facility - Utility Infrastructure </option>
<option value="302-485">302-485 Campus Services and Bookstore Building </option>
<option value="302-556">302-556-Student Housing Living Learning Center, Phase II </option>
<option value="302-640">302-640 Student Housing III </option>
<option value="302-718">302-718</option>
<option value="303-121">303-121 Hazardous Waste Handling Facility </option>
<option value="303-203">303-203 Laboratory Research & Support Building </option>
<option value="303-269">303-269 UT Southwest Bio Technology Center </option>
<option value="303-288">303-288 UTSW North Campus Phs 5 Finishout </option>
<option value="303-366">303-366 Landscape Relocation (non ROCIP) </option>
<option value="303-366-08">303-366-08 Materials Management Building </option>
<option value="303-366-1">303-366-1 MOB II </option>
<option value="303-366-1A">303-366-1A Bone Marrow Transplant SPUH8 Non ROCIP </option>
<option value="303-366-1C">303-366-1C Family Medical Office SPUH 1 </option>
<option value="303-366-1D">303-366-1D OB/GYN Renovation POB 2 - 5 </option>
<option value="303-366-2">303-366-2 Data Hall </option>
<option value="303-366-2A">303-366-2A Data Office </option>
<option value="303-366-3">303-366-3 NUH TEP </option>
<option value="303-366-5">303-366-5 NUH Tower </option>
<option value="303-460">303-460 University Police </option>
<option value="303-567">303-567 Phase 5 Levels 11 & 12 </option>
<option value="401-174">401-174 University Center Expansion Phase III </option>
<option value="401-177">401-177 Thermal Plant #2 UT San Antonio </option>
<option value="401-205">401-205 Engineering Building-Phase II </option>
<option value="401-211">401-211 Laurel Village at UTSA </option>
<option value="401-212">401-212 Recreation & Wellness Facilities Phase II </option>
<option value="401-286">401-286 Combined Science Facility Renovations - 1604 Campus </option>
<option value="401-502">401-502 North Paseo Building </option>
<option value="401-568">401-568 East Parking Garage </option>
<option value="401-570">401-570 Student Housing Phase III </option>
<option value="402-136">402-136 Teaching/Learning Lab - Laredo </option>
<option value="402-137">402-137 Teaching Learning Lab - RAHC Harlingen </option>
<option value="402-141 B">402-141 B Dental School Emergency Fire & Safety Phase I </option>
<option value="402-191">402-191 Medical Arts and Research Center </option>
<option value="402-236">402-236 Cyclotron Addition </option>
<option value="402-275">402-275 South Texas Research Facility </option>
<option value="501-262">501-262 The Wagner Noel Performing Arts Center </option>
<option value="501-263_AC">501-263 Science and Technology Complex, Phases A and C </option>
<option value="501-264">501-264 Student Housing Phase IV </option>
<option value="501-340">501-340 Student Multipurpose Center </option>
<option value="501-345">501-345 Falcon's Nest Addition - Buildings 7-12 </option>
<option value="601-058">601-058 Library Facilities Upgrade </option>
<option value="601-241">601-241 Specialty Care Center at Victory Lakes </option>
<option value="601-253">601-253 Jennie Sealy Replacement Hospital  </option>
<option value="601-360">601-360 Student Housing </option>
<option value="601-398">601-398 University Boulevard Research Building </option>
<option value="601-400">601-400 Utility Production Equipment </option>
<option value="601-486">601-486 John Sealy Hospital Modernization </option>
<option value="601-503">601-503 Center for Technology and Workforce Development </option>
<option value="601-504">601-504 Academic and Business Buildings - Ike Recovery </option>
<option value="601-505">601-505 Healthcare Buildings - Ike Recovery </option>
<option value="601-506">601-506 Infrastructure - Ike Recovery </option>
<option value="601-507">601-507 Research Buildings - Ike Recovery </option>
<option value="601-981">601-981 TDCJ Hospital Exterior Cladding & Security Systems </option>
<option value="701-040">701-040 Mental Health Institute Phase I </option>
<option value="701-160">701-160 Replacement Research Facility - Health Science Center </option>
<option value="701-320B">701-320-B RPC/Dental Branch </option>
<option value="701-401">701-401 Build-out of Floor 6 for Biomedical Engineering </option>
<option value="701-552">701-552 LERR10 - School of Public Health Buildout at UTA 6th Floor </option>
<option value="703-221">703-221 Pickens Phase II Buildout </option>
<option value="703-272">703-272 Alkek Expansion Project </option>
<option value="703-272B">703-272B Alkek Expansion Project </option>
<option value="703-273B">703-273B</option>
<option value="703-278">CABIR 703-278 </option>
<option value="703-278B">703-278B MD Anderson Cancer Center Cabir Cafe Project </option>
<option value="703-278C">703-278C</option>

<option value="703-328">703-328 Center for Targeted Therapy </option>
<option value="703-404">703-404 Administration Support Building </option>
<option value="703-404B">703-404B</option>
<option value="703-494">703-494 MGA </option>
<option value="703-625">703-625 Zayed </option>
<option value="801-361">801-361 Academic Center - Phase I </option>
<option value="802-132">802-132 Engineering Sciences & Technology </option>
<option value="802-227">802-227 University Center Renovation </option>
<option value="802-265 D">802-265 D Art Studio Addition </option>
<option value="802-265B">802-265 B University Center Renovation </option>
<option value="802-266">802-266 Palestine Campus Expansion </option>
<option value="901-204">901-204 Wellness & Recreation Sports Complex </option>
<option value="901-283">901-283 Fine Arts Academic and Performance Complex </option>
<option value="901-284">901-284 The University of Texas-Pan American at Starr County </option>
<option value="902-271">902-271 Biomedical Research and Health Professions Building </option>
<option value="902-618">902-618</option>

703-273B
302-718



    </select><br />

    <select  id="startmonth" name="startmonth"  style="width: 80px">         <option value="01">01</option>        <option value="02">02</option>        <option value="03">03</option>        <option value="04">04</option>        <option value="05">05</option>        <option value="06">06</option>        <option value="07">07</option>        <option value="08">08</option>        <option value="09">09</option>        <option value="10">10</option>        <option value="11">11</option>        <option value="12">12</option>    </select>

    <select  id="startyear" name="startyear" style="width: 80px" >         <option value="2013">2013</option>        <option value="2012">2012</option>        <option value="2011">2011</option>        <option value="2010">2010</option>        <option value="2009">2009</option>        <option value="2009">2008</option>    </select>

    <b>to</b>

    <select id="endmonth" name="endmonth" style="width: 80px">         <option value="01">01</option>        <option value="02">02</option>        <option value="03">03</option>        <option value="04">04</option>        <option value="05">05</option>        <option value="06">06</option>        <option value="07">07</option>        <option value="08">08</option>        <option value="09">09</option>        <option value="10">10</option>        <option value="11">11</option>        <option value="12">12</option>    </select>
    <select id="endyear" name="endyear" style="width: 80px;">         <option value="2013">2013</option>        <option value="2012">2012</option>        <option value="2011">2011</option>        <option value="2010">2010</option>        <option value="2009">2009</option>    </select>    <br />
        <input value="Submit" type="submit" id="info-submit" name="submit" /><input type="button" onclick="Reset();return false;" value="Reset">    
</p><%--   <% var history = (IList<JobHistory>)ViewData["History"]; %>
   <% if(history != null){
        foreach (var h in history){%>
            <%=h.Name %>-<%=h.Date %>-<%=h.Duration %><br/>
        <%} %>
   <%} %>--%>

</form>
<script type="text/javascript">

    $('#endmonth option').eq(new Date().getMonth() - 1).attr('selected', 'selected');
    $('#startyear').val(new Date().getFullYear());
    $('#endyear').val(new Date().getFullYear());

    function ShowType() {
        $(".filter").hide();
        if ($("#type").val() == "project") {
            $("#dates").show();
            $("#project").show();
            $("#reportform").attr("action", "Home/ProjectExport");


        } else if ($("#type").val() == "region") {
            $("#region").show();
            $("#reportform").attr("action", "Home/RegionExport");
        }
        else if ($("#type").val() == "all") {
           
            $("#reportform").attr("action", "Home/AllProjectsExport");
        }   
         else {
            $("#reportform").attr("action", "Home/StateExport");
        }

    }

  function Reset(){
        $('#endmonth option').eq(new Date().getMonth() - 1).attr('selected', 'selected');
        $('#startyear').val(new Date().getFullYear());
        $('#endyear').val(new Date().getFullYear());

        $("#reportform").attr("action", "Home/StateExport");
        $(".filter").hide();
        $("#type").val("state");
}
</script>
</asp:Content>